]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Make Animation visible by default
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 27 Nov 2012 18:23:15 +0000 (13:23 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 27 Nov 2012 18:25:18 +0000 (13:25 -0500)
None of the other widget actors hide themselves by default;
that's a GTK+ thing.

js/ui/panel.js
js/ui/unlockDialog.js

index 50896475881762a3efa5cfa0b00991318553042b..ac2e0ea6b01c222ce5f249ec0bbbf9cfc74333bf 100644 (file)
@@ -79,7 +79,7 @@ const Animation = new Lang.Class({
     Name: 'Animation',
 
     _init: function(filename, width, height, speed) {
-        this.actor = new St.Bin({ visible: false });
+        this.actor = new St.Bin();
         this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
         this._speed = speed;
 
@@ -301,6 +301,7 @@ const AppMenuButton = new Lang.Class({
         this._spinner = new AnimatedIcon('process-working.svg',
                                          PANEL_ICON_SIZE);
         this._container.add_actor(this._spinner.actor);
+        this._spinner.actor.hide();
         this._spinner.actor.lower_bottom();
 
         let tracker = Shell.WindowTracker.get_default();
index 24a82a3acc6119c53a8e6ddeca118924efed9c38..794f6cd83c2ea07e7df0edb61442c2374634e046 100644 (file)
@@ -172,7 +172,6 @@ const UnlockDialog = new Lang.Class({
 
         this._workSpinner = new Panel.AnimatedIcon('process-working.svg', LoginDialog.WORK_SPINNER_ICON_SIZE);
         this._workSpinner.actor.opacity = 0;
-        this._workSpinner.actor.show();
 
         this.allowCancel = false;
         this.buttonLayout.visible = true;